package com.qy139.store.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qy139.entity.Seat;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qy139.store.mapper.SeatMapper;
import com.qy139.store.service.ISeatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hjl
 * @since 2021-12-04
 */
@Service
public class SeatServiceImpl extends ServiceImpl<SeatMapper, Seat> implements ISeatService {
    @Autowired
    private SeatMapper seatMapper;
    @Override
    public IPage<Seat> findAllSeat(Page<Seat> page,Integer roomId) {
        return seatMapper.findAllSeat(page,roomId);
    }

    @Override
    public int updSta(Integer room_id) {
        return seatMapper.updSta(room_id);
    }

    @Override
    public int updStb(Integer room_id) {
        return seatMapper.updStb(room_id);
    }
}
